package com.majsubtense.core.components;

import com.majsubtense.core.Notifier;
import com.majsubtense.core.Container;

public abstract class Component extends Notifier {
    private final ComponentType<? extends Component> componentType;
    protected Container parentContainer;

    public Component(ComponentType<? extends Component> componentType) {
        this.componentType = componentType;
    }

    public ComponentType<? extends Component> getComponentType() {
        return componentType;
    }

    public void setParentContainer(Container parentContainer) {
        this.parentContainer = parentContainer;
    }

    public Container getParentContainer() {
        return parentContainer;
    }
}
